#ifndef COMPRESSION_UNZIP_UTILS_H
#define COMPRESSION_UNZIP_UTILS_H

#include <vector>

using namespace std;

using VecData = vector<unsigned char>;

#pragma pack(push, 1)

struct FileEntry {
    unsigned int pathlen; // Length of the path string
    unsigned int size; // Compressed size
};

#pragma pack(pop)

VecData decompress(VecData::const_iterator begin,
                                 VecData::const_iterator end);

string get_parent_path(const string &path);

#endif //COMPRESSION_UNZIP_UTILS_H
